<?php
/**
 * Created by PhpStorm.
 * User: andrei
 * Date: Jul 9, 2012
 * Time: 10:13:42 AM
 * To change this template use File | Settings | File Templates.
 */
 
class Db_Products_DesignTexts extends Common {
	protected static $tableName = TAB_DESIGN_TEXTS;
	protected static $dbFields = array(
        'id',
		'dt_layout_item_id',
		'dt_text',
		'dt_font_family',
		'dt_font_size',
		'dt_text_align',
		'dt_vertical_align',
		'dt_line_height',
		'dt_color',
        'deleted'
	);


	/**
	 * @var Db_Products_DesignTexts
	 */
	public $objectArray;

	public $id;
	public $dt_layout_item_id;
	public $dt_text;
	public $dt_font_family;
	public $dt_font_size;
	public $dt_text_align;
	public $dt_vertical_align;
	public $dt_color;
    public $deleted;

    function __construct($value=NULL, $fieldName=NULL) {
        parent::__construct($value, $fieldName);
    }

	public static function deleteByLiIds($liIds = array()) {
		$liIdsList = implode(',',$liIds);
		return self::$DB->q("DELETE FROM ?f WHERE `dt_layout_item_id` IN( ? ) ;",self::$tableName, $liIdsList);
	}

}